[xm-test] Set "console=xvc0" for xm-test guests on Intel architecture platforms.
authorJames Bulpin <james@xensource.com>
Tue, 11 Sep 2007 18:11:02 +0000 (19:11 +0100)
committerJames Bulpin <james@xensource.com>
Tue, 11 Sep 2007 18:11:02 +0000 (19:11 +0100)
Tests have been failing because the console for the test ramdisk wasn't using
xvc0 so testcases were not able to interact with it.

Signed-off-by: James Bulpin <james@xensource.com>
tools/xm-test/lib/XmTestLib/arch.py

index 0a55a31ae7e1f5e2964b4daae13c7a860e9e0bf2..654afecb3bbf09fdde645b3bcb8a9ca22583223e 100644 (file)
@@ -70,6 +70,7 @@ ia_ParavirtDefaults = {"memory"       : 64,
                        "kernel"       : ia_getDefaultKernel(),
                        "root"         : "/dev/ram0",
                        "ramdisk"      : getRdPath() + "/initrd.img",
+                       "extra"        : "console=xvc0",
 }
 ia_HVMDefaults =      {"memory"       : 64,
                        "vcpus"        : 1,
@@ -147,7 +148,11 @@ if _arch == "x86" or _arch == "x86_64" or _arch == "ia64":
     # expects one.  This will fail with a gzip-ed image. 
     if configDefaults['ramdisk']:
         rd_size = os.stat(configDefaults['ramdisk']).st_size
-        configDefaults['extra'] = 'ramdisk_size=' + str((rd_size / 1024)+1)
+        clause = 'ramdisk_size=' + str((rd_size / 1024)+1)
+        if configDefaults.has_key('extra'):
+            configDefaults['extra'] = configDefaults['extra'] + " " + clause
+        else:
+            configDefaults['extra'] = clause
 
     if _arch == "ia64":
         minSafeMem = ia64_minSafeMem